<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace app\admin\controller;


/**
 * 我们的客户管理控制器
 */
class Contact extends AdminBase
{

    
    /**
     * 保存我们的客户
     */
    public function ContactEdit()
    {         
        $this->contactCommon();
        
        $info = $this->logicContact->getContactInfo();
 
        $this->assign('info', $info);
        
        return $this->fetch('contact_edit');
    }

    /**
     * 我们的客户添加与编辑通用方法
     */
    public function contactCommon()
    {
        
        IS_POST && $this->jump($this->logicContact->contactEdit($this->param));//判断是否表单提交 是则跳转保存处理
    }
}
